import request from '@/utils/request'

export function newPeopleLiposuction(params) {
  const data = {
    ...params,
    page: params.page ? params.page : 1,
    per_page: params.per_page ? params.per_page : 12,
    sortedBy: params.sortedBy ? params.sortedBy : 'asc',
    orderBy: params.orderBy ? params.sortedBy : 'selling_price_asc'
  }
  return request({
    url: '/product',
    method: 'get',
    params: { ...data }
  })
}
